<!-- HTML header for doxygen 1.8.10-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="generator" content="Doxygen 1.8.10" />
    <title>ZRDDS: DomainParticipantFactory类 参考</title>
    <link href="tabs.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="jquery.js"></script>
    <script type="text/javascript" src="dynsections.js"></script>
    <link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
    <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
    <link href="doxygen.css" rel="stylesheet" type="text/css" />
    <link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
    <link href="static/css/bootstrap.css" rel="stylesheet" />
    <!-- <link href="static/css/sticky-footer-navbar.css" rel="stylesheet">
    <script type="text/javascript" src="static/js/bootstrap.js"></script> -->
    <script type="text/javascript" src="static/js/doxy-boot.js"></script>
</head>
<body>
    <div id="top">
        <!-- do not remove this div, it is closed by doxygen! -->
        <!-- end header part --><!-- 制作者 Doxygen 1.8.10 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="pages.html"><span>相关页面</span></a></li>
      <li><a href="namespaces.html"><span>包</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li><a href="examples.html"><span>示例</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>类列表</span></a></li>
      <li><a href="classes.html"><span>类索引</span></a></li>
      <li><a href="hierarchy.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>类成员</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-static-attribs">静态 Public 属性</a> &#124;
<a href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">DomainParticipantFactory类 参考<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p>域参与者工厂接口的核心功能在于是创建以及销毁域参与者实体，即作为域参与者实体的工厂，域参与者工厂是一个单例类。  
 <a href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory.html#details">更多...</a></p>

<p>被 DomainParticipantFactoryImpl 继承.</p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:af90636d684b420cebc4232c40dc7f4a7"><td class="memItemLeft" align="right" valign="top">abstract <a class="el" href="interfacecom_1_1zrdds_1_1domain_1_1_domain_participant.html">DomainParticipant</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory.html#af90636d684b420cebc4232c40dc7f4a7">create_participant</a> (int domainId, <a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_qos.html">DomainParticipantQos</a> qos, <a class="el" href="interfacecom_1_1zrdds_1_1domain_1_1_domain_participant_listener.html">DomainParticipantListener</a> listener, int mask)</td></tr>
<tr class="memdesc:af90636d684b420cebc4232c40dc7f4a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建一个新的域参与者实体，并设置QoS以及监听器，域参与者的创建表明应用程序打算加入<em>domainId</em> 指定的域中进行通信。  <a href="#af90636d684b420cebc4232c40dc7f4a7">更多...</a><br /></td></tr>
<tr class="separator:af90636d684b420cebc4232c40dc7f4a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a9ccb2e745dc572686edbf516494462"><td class="memItemLeft" align="right" valign="top">abstract <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_return_code__t.html">ReturnCode_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory.html#a0a9ccb2e745dc572686edbf516494462">delete_participant</a> (<a class="el" href="interfacecom_1_1zrdds_1_1domain_1_1_domain_participant.html">DomainParticipant</a> participant)</td></tr>
<tr class="memdesc:a0a9ccb2e745dc572686edbf516494462"><td class="mdescLeft">&#160;</td><td class="mdescRight">该方法删除指定的域参与者。在调用该方法之前需要保证该域参与者的所有子实体都已经被删除。否则将会返回错误  <a href="#a0a9ccb2e745dc572686edbf516494462">更多...</a><br /></td></tr>
<tr class="separator:a0a9ccb2e745dc572686edbf516494462"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a923202f6eb6790a3e94e3125a7178d1e"><td class="memItemLeft" align="right" valign="top">abstract <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_return_code__t.html">ReturnCode_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory.html#a923202f6eb6790a3e94e3125a7178d1e">get_default_participant_qos</a> (<a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_qos.html">DomainParticipantQos</a> qos)</td></tr>
<tr class="memdesc:a923202f6eb6790a3e94e3125a7178d1e"><td class="mdescLeft">&#160;</td><td class="mdescRight">该方法获取该工厂为域参与者保存的默认QoS配置。  <a href="#a923202f6eb6790a3e94e3125a7178d1e">更多...</a><br /></td></tr>
<tr class="separator:a923202f6eb6790a3e94e3125a7178d1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a160cf640962ae328ae138732317dfa76"><td class="memItemLeft" align="right" valign="top">abstract <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_return_code__t.html">ReturnCode_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory.html#a160cf640962ae328ae138732317dfa76">set_default_participant_qos</a> (<a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_qos.html">DomainParticipantQos</a> qos)</td></tr>
<tr class="memdesc:a160cf640962ae328ae138732317dfa76"><td class="mdescLeft">&#160;</td><td class="mdescRight">该方法设置该工厂为域参与者保存的默认QoS配置。  <a href="#a160cf640962ae328ae138732317dfa76">更多...</a><br /></td></tr>
<tr class="separator:a160cf640962ae328ae138732317dfa76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee6d5af51b658ee032360a3771188a75"><td class="memItemLeft" align="right" valign="top">abstract <a class="el" href="interfacecom_1_1zrdds_1_1domain_1_1_domain_participant.html">DomainParticipant</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory.html#aee6d5af51b658ee032360a3771188a75">lookup_participant</a> (int domainId)</td></tr>
<tr class="memdesc:aee6d5af51b658ee032360a3771188a75"><td class="mdescLeft">&#160;</td><td class="mdescRight">该方法在指定域<em>domainId</em> 下查找域参与者，如果有多个域参与者，则返回其中一个。  <a href="#aee6d5af51b658ee032360a3771188a75">更多...</a><br /></td></tr>
<tr class="separator:aee6d5af51b658ee032360a3771188a75"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a094b93248abee6fa388b3d70b54a4d"><td class="memItemLeft" align="right" valign="top">abstract <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_return_code__t.html">ReturnCode_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory.html#a9a094b93248abee6fa388b3d70b54a4d">get_qos</a> (<a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory_qos.html">DomainParticipantFactoryQos</a> qos)</td></tr>
<tr class="memdesc:a9a094b93248abee6fa388b3d70b54a4d"><td class="mdescLeft">&#160;</td><td class="mdescRight">该方法获取为域参与者工厂设置的QoS。  <a href="#a9a094b93248abee6fa388b3d70b54a4d">更多...</a><br /></td></tr>
<tr class="separator:a9a094b93248abee6fa388b3d70b54a4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55290287fe74c1ea096dc8499ec28ea4"><td class="memItemLeft" align="right" valign="top">abstract <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_return_code__t.html">ReturnCode_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory.html#a55290287fe74c1ea096dc8499ec28ea4">set_qos</a> (<a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory_qos.html">DomainParticipantFactoryQos</a> qos)</td></tr>
<tr class="memdesc:a55290287fe74c1ea096dc8499ec28ea4"><td class="mdescLeft">&#160;</td><td class="mdescRight">该方法设置域参与者工厂本身的QoS，特殊的值 <a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory.html#a36d9397a13528f657ee92e6e0f50a666" title="特殊的 DomainParticipantFactoryQos 表示使用保存在父实体中的默认QoS。 ">DomainParticipantFactory.DOMAINPARTICIPANT_FACTORY_QOS_DEFAULT</a> 表示设置为默认值。  <a href="#a55290287fe74c1ea096dc8499ec28ea4">更多...</a><br /></td></tr>
<tr class="separator:a55290287fe74c1ea096dc8499ec28ea4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a3094f94c8b1e18e6abf8882e2bde15e2"><td class="memItemLeft" align="right" valign="top">static final <a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory.html">DomainParticipantFactory</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory.html#a3094f94c8b1e18e6abf8882e2bde15e2">get_instance</a> ()</td></tr>
<tr class="memdesc:a3094f94c8b1e18e6abf8882e2bde15e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取域参与者单例对象  <a href="#a3094f94c8b1e18e6abf8882e2bde15e2">更多...</a><br /></td></tr>
<tr class="separator:a3094f94c8b1e18e6abf8882e2bde15e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:addc8a1c244203581e33b8f324525b524"><td class="memItemLeft" align="right" valign="top">static final <a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory.html">DomainParticipantFactory</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory.html#addc8a1c244203581e33b8f324525b524">get_instance_w_qos</a> (<a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory_qos.html">DomainParticipantFactoryQos</a> qos)</td></tr>
<tr class="memdesc:addc8a1c244203581e33b8f324525b524"><td class="mdescLeft">&#160;</td><td class="mdescRight">按照提供的QoS域参与者单例对象并返回单例  <a href="#addc8a1c244203581e33b8f324525b524">更多...</a><br /></td></tr>
<tr class="separator:addc8a1c244203581e33b8f324525b524"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad371d2deece7612edd198fbf0b3eb1fc"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory.html">DomainParticipantFactory</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory.html#ad371d2deece7612edd198fbf0b3eb1fc">get_instance_w_profile</a> (String qos_file_path, String lib_name, String profile_name, String qos_name)</td></tr>
<tr class="memdesc:ad371d2deece7612edd198fbf0b3eb1fc"><td class="mdescLeft">&#160;</td><td class="mdescRight">以指定参数初始化DDS域参与者工厂  <a href="#ad371d2deece7612edd198fbf0b3eb1fc">更多...</a><br /></td></tr>
<tr class="separator:ad371d2deece7612edd198fbf0b3eb1fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6dab8d87d96aa0b084a67d418e115d1"><td class="memItemLeft" align="right" valign="top">static final <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_return_code__t.html">ReturnCode_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory.html#ad6dab8d87d96aa0b084a67d418e115d1">finalize_instance</a> ()</td></tr>
<tr class="memdesc:ad6dab8d87d96aa0b084a67d418e115d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">析构单例，该方法同样是线程不安全的，多个线程同时调用该函数，可能会出问题。  <a href="#ad6dab8d87d96aa0b084a67d418e115d1">更多...</a><br /></td></tr>
<tr class="separator:ad6dab8d87d96aa0b084a67d418e115d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
静态 Public 属性</h2></td></tr>
<tr class="memitem:af61b77a373c3ab7903f4db0d24824697"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af61b77a373c3ab7903f4db0d24824697"></a>
static final <a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_qos.html">DomainParticipantQos</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory.html#af61b77a373c3ab7903f4db0d24824697">PARTICIPANT_QOS_DEFAULT</a></td></tr>
<tr class="memdesc:af61b77a373c3ab7903f4db0d24824697"><td class="mdescLeft">&#160;</td><td class="mdescRight">特殊的 <a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_qos.html" title="定义域参与者的QoS配置。 ">DomainParticipantQos</a> 表示使用保存在父实体中的默认QoS。 <br /></td></tr>
<tr class="separator:af61b77a373c3ab7903f4db0d24824697"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a36d9397a13528f657ee92e6e0f50a666"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a36d9397a13528f657ee92e6e0f50a666"></a>
static final <a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory_qos.html">DomainParticipantFactoryQos</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory.html#a36d9397a13528f657ee92e6e0f50a666">DOMAINPARTICIPANT_FACTORY_QOS_DEFAULT</a> =new <a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory_qos.html">DomainParticipantFactoryQos</a>()</td></tr>
<tr class="memdesc:a36d9397a13528f657ee92e6e0f50a666"><td class="mdescLeft">&#160;</td><td class="mdescRight">特殊的 <a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory_qos.html" title="定义域参与者工厂的QoS。 ">DomainParticipantFactoryQos</a> 表示使用保存在父实体中的默认QoS。 <br /></td></tr>
<tr class="separator:a36d9397a13528f657ee92e6e0f50a666"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>域参与者工厂接口的核心功能在于是创建以及销毁域参与者实体，即作为域参与者实体的工厂，域参与者工厂是一个单例类。 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a class="anchor" id="af90636d684b420cebc4232c40dc7f4a7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="interfacecom_1_1zrdds_1_1domain_1_1_domain_participant.html">DomainParticipant</a> create_participant </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>domainId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_qos.html">DomainParticipantQos</a>&#160;</td>
          <td class="paramname"><em>qos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="interfacecom_1_1zrdds_1_1domain_1_1_domain_participant_listener.html">DomainParticipantListener</a>&#160;</td>
          <td class="paramname"><em>listener</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">abstract</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>创建一个新的域参与者实体，并设置QoS以及监听器，域参与者的创建表明应用程序打算加入<em>domainId</em> 指定的域中进行通信。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">domainId</td><td>表明需要加入的域号，取值范围为[0-232]。 </td></tr>
    <tr><td class="paramname">qos</td><td>表示为该域参与者设置的QoS，DomainParticipantFactory.PARTICIPANT_QOS_DEFAULT 表明使用域参与者工厂中保存的默认的QoS。 </td></tr>
    <tr><td class="paramname">listener</td><td>为该域参与者设置的监听器。 </td></tr>
    <tr><td class="paramname">mask</td><td>设置应用程序感兴趣的状态，只有应用程序感兴趣的状态发生变化时，才会通知应用程序。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>创建成功指向创建成功的域参与者实体对象，否则返回NULL，失败的原因可能为：<ul>
<li>分配空间失败或者初始化资源失败，具体的错误信息参见日志；</li>
<li><em>qos</em> 含有无效值或者含有不一致的QoS。 </li>
</ul>
</dd></dl>

</div>
</div>
<a class="anchor" id="a0a9ccb2e745dc572686edbf516494462"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_return_code__t.html">ReturnCode_t</a> delete_participant </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="interfacecom_1_1zrdds_1_1domain_1_1_domain_participant.html">DomainParticipant</a>&#160;</td>
          <td class="paramname"><em>participant</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">abstract</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>该方法删除指定的域参与者。在调用该方法之前需要保证该域参与者的所有子实体都已经被删除。否则将会返回错误 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">participant</td><td>指明需要删除的域参与者实体。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>可能的返回值如下：<ul>
<li><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_return_code__t.html#a5d7e5ebc74fcef92e1d4489ff2ef098d" title="执行成功。 ">ReturnCode_t.RETCODE_OK</a> :表示删除成功；</li>
<li><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_return_code__t.html#a954f75a236a7a535d4da2723bb453677" title="不正确的参数。 ">ReturnCode_t.RETCODE_BAD_PARAMETER</a> :用户提供的参数不是有效的域参与者对象，包括NULL值；</li>
<li><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_return_code__t.html#af47437bfa8ad9c871378f6a7c603752a" title="调用操作的前置条件未满足。 ">ReturnCode_t.RETCODE_PRECONDITION_NOT_MET</a> :指明的域参与者不满足删除条件，即还有子实体未删除；</li>
<li><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_return_code__t.html#ab74ac22c8cc8d89bc6fd1f2221a5272d" title="执行出错。 ">ReturnCode_t.RETCODE_ERROR</a> :指明的域参与者不是由工厂创建。 </li>
</ul>
</dd></dl>

</div>
</div>
<a class="anchor" id="ad6dab8d87d96aa0b084a67d418e115d1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_return_code__t.html">ReturnCode_t</a> finalize_instance </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>析构单例，该方法同样是线程不安全的，多个线程同时调用该函数，可能会出问题。 </p>
<dl class="section return"><dt>返回</dt><dd>当前可能的返回值：<ul>
<li><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_return_code__t.html#a5d7e5ebc74fcef92e1d4489ff2ef098d" title="执行成功。 ">ReturnCode_t.RETCODE_OK</a> :表示析构成功；</li>
<li><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_return_code__t.html#af47437bfa8ad9c871378f6a7c603752a" title="调用操作的前置条件未满足。 ">ReturnCode_t.RETCODE_PRECONDITION_NOT_MET</a> :由该域参与者工厂创建的域参与者未删除完； </li>
</ul>
</dd></dl>

</div>
</div>
<a class="anchor" id="a923202f6eb6790a3e94e3125a7178d1e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_return_code__t.html">ReturnCode_t</a> get_default_participant_qos </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_qos.html">DomainParticipantQos</a>&#160;</td>
          <td class="paramname"><em>qos</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">abstract</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>该方法获取该工厂为域参与者保存的默认QoS配置。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">qos</td><td>出口参数表示获取的结果.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>当前的返回值类型：<ul>
<li><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_return_code__t.html#a5d7e5ebc74fcef92e1d4489ff2ef098d" title="执行成功。 ">ReturnCode_t.RETCODE_OK</a> :表示设置成功；</li>
<li><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_return_code__t.html#ab74ac22c8cc8d89bc6fd1f2221a5272d" title="执行出错。 ">ReturnCode_t.RETCODE_ERROR</a> :表示失败，例如复制QoS时发生错误。 </li>
</ul>
</dd></dl>

</div>
</div>
<a class="anchor" id="a3094f94c8b1e18e6abf8882e2bde15e2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory.html">DomainParticipantFactory</a> get_instance </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取域参与者单例对象 </p>
<dl class="section return"><dt>返回</dt><dd>当前可能的返回值：<ul>
<li>NULL对象的引用表示创建单例对象失败，可能的原因：<ul>
<li>初始化资源失败，详细参见日志；</li>
<li>Mac或者时间验证失败；</li>
</ul>
</li>
<li>获取成功的单例对象引用； 在整个应用程序第一次获取实例时，应进行如下的检查： <div class="fragment"><div class="line"><span class="keywordflow">if</span> (DomainParticipantFactory.get_instance() == NULL)</div>
<div class="line">{</div>
<div class="line">    <span class="comment">// get domainparticipant factory faild.</span></div>
<div class="line">}</div>
</div><!-- fragment --></li>
</ul>
</dd></dl>
<dl class="section note"><dt>注解</dt><dd>该方法线程不安全，多个线程同时创建实例不安全，获取实例安全。 </dd></dl>

</div>
</div>
<a class="anchor" id="ad371d2deece7612edd198fbf0b3eb1fc"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory.html">DomainParticipantFactory</a> get_instance_w_profile </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>qos_file_path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>lib_name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>profile_name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>qos_name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>以指定参数初始化DDS域参与者工厂 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">qos_file_path</td><td>Qos配置文件路径，当为null时，将默认使用运行目录的 ZRDDS_QOS_PROFILES.xml 文件。 </td></tr>
    <tr><td class="paramname">lib_name</td><td>Qos库名称，不允许为null。 </td></tr>
    <tr><td class="paramname">profile_name</td><td>Qos配置名称，不允许为null。 </td></tr>
    <tr><td class="paramname">qos_name</td><td>Qos名称，允许为空，将转化为default字符串。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>当前可能的返回值：<ul>
<li>NULL对象的引用表示创建单例对象失败，可能的原因：<ul>
<li>初始化资源失败，详细参见日志；</li>
<li>Mac或者时间验证失败；</li>
</ul>
</li>
<li>获取成功的单例对象引用； </li>
</ul>
</dd></dl>
<dl class="section note"><dt>注解</dt><dd>该方法线程不安全，多个线程同时创建实例不安全，获取实例安全。 </dd></dl>

</div>
</div>
<a class="anchor" id="addc8a1c244203581e33b8f324525b524"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory.html">DomainParticipantFactory</a> get_instance_w_qos </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory_qos.html">DomainParticipantFactoryQos</a>&#160;</td>
          <td class="paramname"><em>qos</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>按照提供的QoS域参与者单例对象并返回单例 </p>
<dl class="section return"><dt>返回</dt><dd>当前可能的返回值：<ul>
<li>NULL对象的引用表示创建单例对象失败，可能的原因：<ul>
<li>初始化资源失败，详细参见日志；</li>
<li>Mac或者时间验证失败；</li>
</ul>
</li>
<li>获取成功的单例对象引用；</li>
</ul>
</dd></dl>
<dl class="section note"><dt>注解</dt><dd>该方法线程不安全，多个线程同时创建实例不安全，获取实例安全。 </dd></dl>

</div>
</div>
<a class="anchor" id="a9a094b93248abee6fa388b3d70b54a4d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_return_code__t.html">ReturnCode_t</a> get_qos </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory_qos.html">DomainParticipantFactoryQos</a>&#160;</td>
          <td class="paramname"><em>qos</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">abstract</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>该方法获取为域参与者工厂设置的QoS。 </p>
<p>如果调用该方法之前未调用过 <a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory.html#a55290287fe74c1ea096dc8499ec28ea4" title="该方法设置域参与者工厂本身的QoS，特殊的值 DomainParticipantFactory.DOMAINPARTICIPANT_FACTORY_QOS_DEFA...">set_qos</a> ，则返回系统默认的QoS配置，否则返回 <a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory.html#a55290287fe74c1ea096dc8499ec28ea4" title="该方法设置域参与者工厂本身的QoS，特殊的值 DomainParticipantFactory.DOMAINPARTICIPANT_FACTORY_QOS_DEFA...">set_qos</a> 的结果。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">qos</td><td>出口参数，存储获取的结果。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>当前的返回值类型：<ul>
<li><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_return_code__t.html#a5d7e5ebc74fcef92e1d4489ff2ef098d" title="执行成功。 ">ReturnCode_t.RETCODE_OK</a> :表示设置成功；</li>
<li><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_return_code__t.html#ab74ac22c8cc8d89bc6fd1f2221a5272d" title="执行出错。 ">ReturnCode_t.RETCODE_ERROR</a> :表示失败，例如复制QoS时发生错误。 </li>
</ul>
</dd></dl>

</div>
</div>
<a class="anchor" id="aee6d5af51b658ee032360a3771188a75"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="interfacecom_1_1zrdds_1_1domain_1_1_domain_participant.html">DomainParticipant</a> lookup_participant </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>domainId</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">abstract</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>该方法在指定域<em>domainId</em> 下查找域参与者，如果有多个域参与者，则返回其中一个。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">domainId</td><td>需要查找的域。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>当前可能的返回值：<ul>
<li>NULL表示查找失败，即本地在该域下当前没有域参与者；</li>
<li>非空表示查找的结果，返回的结果为该域下域参与者指针最小的域参与者。 </li>
</ul>
</dd></dl>

</div>
</div>
<a class="anchor" id="a160cf640962ae328ae138732317dfa76"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_return_code__t.html">ReturnCode_t</a> set_default_participant_qos </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_qos.html">DomainParticipantQos</a>&#160;</td>
          <td class="paramname"><em>qos</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">abstract</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>该方法设置该工厂为域参与者保存的默认QoS配置。 </p>
<p>默认的QoS在创建新的域参与者时指定QoS参数为 <a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory.html#af61b77a373c3ab7903f4db0d24824697" title="特殊的 DomainParticipantQos 表示使用保存在父实体中的默认QoS。 ">DomainParticipantFactory.PARTICIPANT_QOS_DEFAULT</a> 时使用的QoS配置， 使用特殊的值 <a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory.html#af61b77a373c3ab7903f4db0d24824697" title="特殊的 DomainParticipantQos 表示使用保存在父实体中的默认QoS。 ">DomainParticipantFactory.PARTICIPANT_QOS_DEFAULT</a> 域参与者QoS中的各个配置的设置为默认值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">qos</td><td>指明QoS配置。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>当前可能的返回值：<ul>
<li><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_return_code__t.html#a5d7e5ebc74fcef92e1d4489ff2ef098d" title="执行成功。 ">ReturnCode_t.RETCODE_OK</a> :表示设置成功；</li>
<li><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_return_code__t.html#a954f75a236a7a535d4da2723bb453677" title="不正确的参数。 ">ReturnCode_t.RETCODE_BAD_PARAMETER</a> :表示<em>qos</em> 为空，或者<em>qos</em> 具有无效值；</li>
<li><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_return_code__t.html#a0b208b4c796b0846d48fb4f06e54e847" title="不一致的Qos。 ">ReturnCode_t.RETCODE_INCONSISTENT</a> :表示<em>qos</em> 中具有不相容的配置；</li>
<li><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_return_code__t.html#ab74ac22c8cc8d89bc6fd1f2221a5272d" title="执行出错。 ">ReturnCode_t.RETCODE_ERROR</a> :表示失败，例如复制QoS时发生错误。 </li>
</ul>
</dd></dl>

</div>
</div>
<a class="anchor" id="a55290287fe74c1ea096dc8499ec28ea4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_return_code__t.html">ReturnCode_t</a> set_qos </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory_qos.html">DomainParticipantFactoryQos</a>&#160;</td>
          <td class="paramname"><em>qos</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">abstract</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>该方法设置域参与者工厂本身的QoS，特殊的值 <a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory.html#a36d9397a13528f657ee92e6e0f50a666" title="特殊的 DomainParticipantFactoryQos 表示使用保存在父实体中的默认QoS。 ">DomainParticipantFactory.DOMAINPARTICIPANT_FACTORY_QOS_DEFAULT</a> 表示设置为默认值。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">qos</td><td>指明目标QoS。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>当前可能的返回值：<ul>
<li><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_return_code__t.html#a5d7e5ebc74fcef92e1d4489ff2ef098d" title="执行成功。 ">ReturnCode_t.RETCODE_OK</a> :表示设置成功；</li>
<li><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_return_code__t.html#a954f75a236a7a535d4da2723bb453677" title="不正确的参数。 ">ReturnCode_t.RETCODE_BAD_PARAMETER</a> :表示<em>qos_list为空，或者<em>qos_list</em> 具有无效值；</em> </li>
<li><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_return_code__t.html#a0b208b4c796b0846d48fb4f06e54e847" title="不一致的Qos。 ">ReturnCode_t.RETCODE_INCONSISTENT</a> :表示<em>qos_list</em> 中具有不相容的配置；</li>
<li><a class="el" href="classcom_1_1zrdds_1_1infrastructure_1_1_return_code__t.html#ab74ac22c8cc8d89bc6fd1f2221a5272d" title="执行出错。 ">ReturnCode_t.RETCODE_ERROR</a> :表示失败，例如复制QoS时发生错误。 </li>
</ul>
</dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>DomainParticipantFactory.java</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.10-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>com</b></li><li class="navelem"><b>zrdds</b></li><li class="navelem"><a class="el" href="namespacecom_1_1zrdds_1_1domain.html">domain</a></li><li class="navelem"><a class="el" href="classcom_1_1zrdds_1_1domain_1_1_domain_participant_factory.html">DomainParticipantFactory</a></li>
    <li class="footer">
      <a href="http://www.zrtechnology.com">&copy; Copyright (c) 2018 ZhenRong Technology, Inc. All rights reserved.</a>
    </li>
  </ul>
</div>
</body>
</html>
